//
//  VideoView.h
//  DD
//
//  Created by Burn on 2019/4/6.
//  Copyright © 2019 menksoft. All rights reserved.
//  自定义的视频View

#import <UIKit/UIKit.h>
#import "UIView+CustomControlView.h"


@protocol VideoViewDelegate <NSObject>

- (void)popClick;

@end

NS_ASSUME_NONNULL_BEGIN

@interface VideoView : UIView

- (instancetype)initWithFrame:(CGRect)frame andURL:(NSString *)url;

- (void)viewWillAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;

- (void)secreenClic;

- (void)pause;
- (void)resume;

- (void)changeUrl:(NSString *)url;

@property(weak,nonatomic) id<VideoViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
